package com.xingda.packing.dmss.minitor.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xingda.packing.dmss.common.BaseController;
import com.xingda.packing.dmss.common.R;
import com.xingda.packing.dmss.common.dto.PageDto;
import com.xingda.packing.dmss.minitor.dto.PkLogDto;
import com.xingda.packing.dmss.minitor.service.IpkLogService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/log")
public class PkLogController extends BaseController {
    @Resource
    private IpkLogService ipkLogService;

    @GetMapping("/getPage")
    public R getPkLogPage(PageDto pageDto) {
        Page<PkLogDto> page = ipkLogService.getPkLogPage(pageDto);
        return R.ok().put("data", page);
    }
}
